package com.situ.edu.listener;


import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.situ.edu.dao.IXiCourseDao;
import com.situ.edu.dao.impl.XiCourseDaoImpl;
import com.situ.edu.pojo.vo.CourseVO;

public class XiCourseExcelListener extends AnalysisEventListener<CourseVO> {
    private IXiCourseDao xiCourseDao = new XiCourseDaoImpl();

    @Override
    public void invoke(CourseVO courseVO, AnalysisContext analysisContext) {
        System.out.println("BlogExcelListener.invoke");
        System.out.println(courseVO);
        xiCourseDao.addExcel(courseVO);

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("BlogExcelListener.doAfterAllAnalysed");
    }
}
